package com.yaps.petstore.stateless.order;

import com.yaps.petstore.entity.Address;
import com.yaps.petstore.entity.customer.Customer;
import com.yaps.petstore.entity.order.CreditCard;
import com.yaps.petstore.entity.order.Order;
import com.yaps.petstore.stateful.CartItem;

import javax.ejb.Local;
import java.util.List;

/**
 * @author Antonio Goncalves
 */
@Local
public interface OrderLocal {

    // ======================================
    // =             Constantes             =
    // ======================================

    Order createOrder(Customer customer, Address deliveryAddress, CreditCard creditCard, List<CartItem> cartItems);
}